<template>
  <el-select v-model="code" @change="mySelect()" placeholder="请选择快递名称">
    <el-option label="请选择" value="0"></el-option>
    <el-option
      v-for="(item) in logistics"
      :key="item.id+index"
      :label="item.logistics_name"
      :value="item.logistics_code"
    ></el-option>
  </el-select>
</template>

<script>
export default {
  name: "Myselet",
  props: {
    logistics: {
      type: Array
    },
    index: {
      type: Number
    }
  },
  methods: {
    mySelect() {
      this.$emit("mychange", this.code);
    }
  },
  watch: {}
};
</script>
